import request from '@/utils/http'

/** 获取图形验证码 */
export function getCaptcha() {
  return request<string>({
    url: '/captcha',
    method: 'post',
    noNeedToken: true,
  })
}

/** 获取邮箱验证码 */
export function emailVerify(data: { email: string }) {
  return request({
    url: '/emailVerify',
    method: 'post',
    data,
    noNeedToken: true,
  })
}
